123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <p v-html="list">
- </p>
- </template>
- <script lang="ts" setup>
- import { useRoute } from 'vue-router'
- import axios from 'axios'
- const route = useRoute()
- console.log('route', route.params.id)
- let list = ref('')
- const postListIDFn = async (id: string | string[]) => {
- let z: any = await axios.get(`https://official.webapi.bicredit.xin/api/news/detail/${id}`)
- console.log('zzz', z)
-
- list.value = z.data.data.content
-
-
- }
- postListIDFn(route.params.id)
- </script>
|